/*
package com.sxz.sbs.applibrary.dialog.loading.view;

import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;

import com.sxz.sbs.applibrary.R;

*/
/**
 * 车加载等待框
 *
 * @author tian
 *//*


public class CarLoadingView extends AppCompatImageView {
    private AnimationDrawable frameAnim;

    public CarLoadingView(Context context) {
        super(context);
        init(context);
    }

    public CarLoadingView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }


    private void init(Context context) {
        frameAnim=(AnimationDrawable)context.getResources().getDrawable(R.drawable.car_loading_anim);
        setBackgroundDrawable(frameAnim);
        start();
    }

    private void start() {
        if (frameAnim != null && !frameAnim.isRunning()) {
            frameAnim.start();
        }
    }

    @Override
    protected void onDetachedFromWindow() {
        if (frameAnim != null && !frameAnim.isRunning()) {
            frameAnim.stop();
        }
        super.onDetachedFromWindow();
    }
}
*/
